package com.ruicar.afs.cloud.seats.condition;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.bizcommon.enums.rules.RuleStatus;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author tiankai
 * @Describe 规则参数
 * Created on 2020-06-05
 */
@Data
public class RegularValueCondition {
    int pageSize;
    int pageNumber;
    /**
     * 参数ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 参数值
     */
    private String value;
    /**
     * 创建时间
     */
    public Date createTime;
    /**
     * 规则类型
     */
    public String ruleType;
    /**
     * 规则状态
     */
    private String ruleState;
    /**
     * 规则ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ruleId;
    /**
     * 规则编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ruleNo;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 分单时间集
     */
    List time;
    /**
     * 流程序号
     */
    private String processNo;
    /**
     * 状态;new-创建
     * active-生效
     * expired-失效
     */
    private RuleStatus status;
    /**
     * 版本
     */
    private Integer ruleVersion;
    /**
     * 规则名称
     */
    private String regulationName;
}
